<template>
  <div class="live">
    <div class="liveContainer">
      <div class="head">
        <div class="title">相关直播推荐</div>
        <div class="ftitle">你已经被我一个人包围了</div>
      </div>
      <div class="liveList">
        <div class="liveItem">
          <img src="../../assets/images/live1.jpg" alt="" />
          <div class="liveStatus">
            <i></i>
            直播中
          </div>
        </div>
        <div class="liveItem">
          <img src="../../assets/images/live2.jpg" alt="" />
          <div class="liveStatus">
            <i></i>
            直播中
          </div>
        </div>
        <div class="liveItem">
          <img src="../../assets/images/live3.jpg" alt="" />
          <div class="liveStatus">
            <i></i>
            直播中
          </div>
        </div>
        <div class="liveItem">
          <img src="../../assets/images/live4.jpg" alt="" />
          <div class="liveStatus">
            <i></i>
            直播中
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
  name: "Live",
});
</script>

<script lang="ts" setup></script>
<style lang="less" scoped>
.live {
  .liveContainer {
    width: 1200px;
    margin: 10px auto;
    .head {
      height: 36px;
      width: 100%;
      display: flex;
      justify-content: start;
      align-items: center;
      .title {
        font-size: 26px;
        margin-left: 10px;
      }
      .ftitle {
        color: #909399;
        margin-left: 20px;
      }
    }
    .liveList {
      height: 180px;
      margin-top: 20px;
      display: flex;
      .liveItem {
        width: 285px;
        height: 100%;
        overflow: hidden;
        margin: 0 10px;
        position: relative;
        cursor: pointer;
        img {
          width: 100%;
          transition: all 1s;
          &:hover {
            transform: scale(1.1);
          }
        }
        .liveStatus {
          position: absolute;
          top: 10px;
          left: 10px;
          width: 66px;
          height: 24px;
          border-radius: 12px;
          background-color: rgba(0, 0, 0, 0.4);
          font-size: 12px;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #fff;
          i {
            display: block;
            width: 6px;
            height: 6px;
            border-radius: 3px;
            background-color: #ff0000;
            margin-right: 5px;
          }
        }
      }
    }
  }
}
</style>
